<?php
class Admin_Bootstrap extends Zend_Application_Module_Bootstrap{
	protected function _bootstrap(){
		$_conf = new Zend_Config_Ini(APPLICATION_PATH . "/modules/".strtolower($this->getModuleName())."/config/application.ini",APPLICATION_ENV);
		$this->_options = array_merge($this->_options,$_conf->toArray());
		parent::_bootstrap();
	}
	protected function _initModule(){
        $_isEnabled = $this->_options['config']['enabled'];  
        if ($_isEnabled != 1) {
            throw new Exception("This module is not available for the moment.");
        }
    }
}